using System;
using System.Collections.Generic;
using System.Text;

namespace Diffluxum.CCScoring
{
    public class Utilities
    {
        public static ICollection<T> GetUnion<T>(ICollection<T> a, ICollection<T> b)
        {
            List<T> union = new List<T>(a);

            foreach (T value in b)
            {
                if (!union.Contains(value))
                {
                    union.Add(value);
                }
            }

            return union;
        }

    }
}
